package com.ly.oa.service.flow.impl;

import java.util.List;
import java.util.Map;

import com.ly.core.service.impl.BaseServiceImpl;
import com.ly.oa.dao.flow.ProcessFormDao;
import com.ly.oa.model.flow.ProcessForm;
import com.ly.oa.service.flow.ProcessFormService;

public class ProcessFormServiceImpl extends BaseServiceImpl<ProcessForm>
		implements ProcessFormService {
	private ProcessFormDao dao;

	public ProcessFormServiceImpl(ProcessFormDao dao) {
		super(dao);
		this.dao = dao;
	}

	/**
	 * 取得某个流程实例的所有表单
	 * 
	 * @param runId
	 * @return
	 */
	public List getByRunId(Long runId) {
		return dao.getByRunId(runId);
	}

	public Map getVariables(Long runId) {
		return this.dao.getVariables(runId);
	}
	 public ProcessForm getByRunIdActivityName(Long runId, String activityName)
	  {
	    return this.dao.getByRunIdActivityName(runId, activityName);
	  }
}